/*
 * @Author: Lizhenyu
 * @Date: 2021-07-13 10:21:32
 * @FilePath: \usp-osm-frondend\src\api\label.js
 */
import { service } from '@/utils/request'

const api = {
  labelList: '/admin/mdse/label/list',
  labelDetail: '/admin/mdse/label/detail',
  saveLabel: '/admin/mdse/label/save'
}

export function getLabel (data) {
  return service({
    url: api.labelList,
    method: 'post',
    data
  })
}

export function getAttributeDetail (data) {
  return service({
    url: api.labelDetail,
    method: 'post',
    data
  })
}

export function updateLabel (data) {
  return service({
    url: api.saveLabel,
    method: 'post',
    data
  })
}
